/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package model;

/**
 * The Class Group.
 */
public class Group implements java.io.Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -1864658793756049828L;
	
	/** The id. */
	private int id;
	
	/** The description. */
	private String description;
	
	/** The loan duration in days. */
	private int loanDurationInDays;
	
	/** The annual fee. */
	private float annualFee;
	
	/** The lending extension in days. */
	private int lendingExtensionInDays;
	
	/** The allowed no of extensions. */
	private int allowedNoOfExtensions;

	/**
	 * Instantiates a new group.
	 */
	public Group() {
	}

	/**
	 * Instantiates a new group.
	 * 
	 * @param desc
	 *            the desc
	 * @param loandurationindays
	 *            the loandurationindays
	 * @param annualfee
	 *            the annualfee
	 * @param lendingextensionindays
	 *            the lendingextensionindays
	 * @param allowednoofextensions
	 *            the allowednoofextensions
	 */
	public Group(String desc, int loandurationindays, int annualfee,
			int lendingextensionindays, int allowednoofextensions) {
		this.description = desc;
		this.annualFee = annualfee;
		this.loanDurationInDays = loandurationindays;
		this.lendingExtensionInDays = lendingextensionindays;
		this.allowedNoOfExtensions = allowednoofextensions;
	}

	/**
	 * Instantiates a new group.
	 * 
	 * @param description
	 *            the description
	 */
	public Group(String description) {
		this.description = description;
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Gets the description.
	 * 
	 * @return the description
	 */
	public String getDescription() {
		return this.description;
	}

	/**
	 * Sets the description.
	 * 
	 * @param description
	 *            the new description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Gets the loan duration in days.
	 * 
	 * @return the loan duration in days
	 */
	public int getLoanDurationInDays() {
		return loanDurationInDays;
	}

	/**
	 * Sets the loan duration in days.
	 * 
	 * @param loanDurationInDays
	 *            the new loan duration in days
	 */
	public void setLoanDurationInDays(int loanDurationInDays) {
		this.loanDurationInDays = loanDurationInDays;
	}

	/**
	 * Gets the annual fee.
	 * 
	 * @return the annual fee
	 */
	public float getAnnualFee() {
		return annualFee;
	}

	/**
	 * Sets the annual fee.
	 * 
	 * @param annualFee
	 *            the new annual fee
	 */
	public void setAnnualFee(float annualFee) {
		this.annualFee = annualFee;
	}

	/**
	 * Gets the lending extension in days.
	 * 
	 * @return the lending extension in days
	 */
	public int getLendingExtensionInDays() {
		return lendingExtensionInDays;
	}

	/**
	 * Sets the lending extension in days.
	 * 
	 * @param lendingExtensionInDays
	 *            the new lending extension in days
	 */
	public void setLendingExtensionInDays(int lendingExtensionInDays) {
		this.lendingExtensionInDays = lendingExtensionInDays;
	}

	/**
	 * Gets the allowed no of extensions.
	 * 
	 * @return the allowed no of extensions
	 */
	public int getAllowedNoOfExtensions() {
		return allowedNoOfExtensions;
	}

	/**
	 * Sets the allowed no of extensions.
	 * 
	 * @param allowedNoOfExtensions
	 *            the new allowed no of extensions
	 */
	public void setAllowedNoOfExtensions(int allowedNoOfExtensions) {
		this.allowedNoOfExtensions = allowedNoOfExtensions;
	}

}
